package com.qfjy.homework.zhangquanmin;

/**
 * @author : ZQM
 * @version : 1.0
 * @date : 2022/11/10 19:35
 */
public class HomeWorkTest {

    public static void main(String[] args) {
        HomeWork homeWork = new Teacher();
        //获取静态代理对象
        Monitor monitor = new Monitor(homeWork);
        monitor.getHomeWork();
        //获取动态代理对象
        HomeWork homeWork1 = (HomeWork) HomeWorkFactory.getProxyBean(homeWork);
        homeWork1.getHomeWork();
    }
}
